package com.gopay.common.constants.autosettle;

/**
 * @description  自动结算方案的工作日和节假日渠道
 * @author jianghp
 * @date 2018/4/28 17:51
 * Copyright (c) 2018. www.gopay.com.cn Inc.All rights reserved.
 */
public enum AutoSettleChannelEnum {

	ABC("ABC","中国农业银行"),

	CMB("CMB","招商银行"),

	ICBC("ICBC","中国工商银行"),

	BOC("BOC","中国银行"),

	CCB("CCB","中国建设银行"),

	ICBC_SUPER("ICBC_SUPER","工行超级网银"),

	ICBC_CROSS("ICBC_CROSS","工行跨行大额"),

	NUCCPAY("NUCCPAY","网联支付");

	private String bankCode;
	private String bankName;

	AutoSettleChannelEnum(String bankCode, String bankName) {
		this.bankCode = bankCode;
		this.bankName = bankName;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public static String getName(String bankCode) {
		for (AutoSettleChannelEnum c : values()) {
			if (c.getBankCode().equals(bankCode)) {
				return c.getBankName();
			}
		}
		return "";
	}
}
